﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = WeaponTunings
		ModuleClass                    = Lasers
		Module                         = oqulus laser tuning
		CpuUsage                       = 21.00 TF
		ReactorUsage                   = 13.00 RP
		Type                           = Passive
		Slot                           = Head
		TechnologicalLevel             = T4
		Mass                           = 125.00 kg
		PackedVolume                   = 0.25 U
		Volume                         = 0.50 U
		CycleTime                      = -7.50 %
		CriticalHitChanceModification  = 3.00 %
		Damage                         = 7.50 %
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Oqulus laser tuning module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:57</remarks>
    public sealed class OqulusLaserTuning : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="OqulusLaserTuning"/> class.
        /// </summary>
        public OqulusLaserTuning()
            : base(
            "Oqulus laser tuning",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.WeaponTunings,
            TechnologyLevelsEnum.Level4,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(WeaponCpuUsage<double>),21.00),
				new LazyFeature(typeof(WeaponReactorUsage<double>),13.00),
				new LazyFeature(typeof(ModuleMass<double>),125.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 125.00 ){ IsVisible = false },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SmallLaserCycleTime, -0.075 ){ Unit = UnitsEnum.Percentage, DisplayName ="Small Laser cycle time" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.MediumLaserCycleTime, -0.075 ){ Unit = UnitsEnum.Percentage, DisplayName ="Medium Laser cycle time" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.SmallLaserDamage, 0.075 ){ Unit = UnitsEnum.Percentage, DisplayName ="Small Laser damage" },
				new Modifier( FeatureTypesEnum.Module, FeaturesEnum.MediumLaserDamage, 0.075 ){ Unit = UnitsEnum.Percentage, DisplayName ="Medium Laser damage" },
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.CriticalHitChance, 0.03 ){ Unit = UnitsEnum.Percentage, DisplayName ="Critical hit chance" }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Passive; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Head; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Modules; }
        }
    }
}